home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / system / misc.i < prev    next >
Encoding:
Text File  |  1997-11-10  |  4.4 KB  |  136 lines

  1.     IFND SYSTEM_MISC_I
  2. SYSTEM_MISC_I  SET  1
  3.  
  4. **
  5. **    $VER: misc.i V0.9B
  6. **
  7. **    (C) Copyright 1996-1997 DreamWorld Productions.
  8. **        All Rights Reserved
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include    'dpkernel/dpkernel.i'
  13.     ENDC
  14.  
  15. ******************************************************************************
  16. * Object Referencing structure.
  17.  
  18. REFVERSION     = 1
  19. TAGS_REFERENCE = ((ID_SPCTAGS<<16)|ID_REFERENCE)
  20.  
  21.     STRUCTURE    REF,HEAD_SIZEOF  ;Standard header.
  22.     APTR    REF_Next         ;Next reference.
  23.     APTR    REF_Prev         ;Previous reference.
  24.     WORD    REF_ObjectID     ;ID of the object.
  25.     WORD    REF_Pad          ;Reserved.
  26.     APTR    REF_ObjectName   ;Name of the object.
  27.     APTR    REF_ModName      ;Name of the module containing the object.
  28.     APTR    REF_CheckFile    ;CheckFile code.
  29.     WORD    REF_ModNumber    ;Module ID number.
  30.  
  31. REFA_ObjectID   = (TWORD|REF_ObjectID)
  32. REFA_ObjectName = (TAPTR|REF_ObjectName)
  33. REFA_ModName    = (TAPTR|REF_ModName)
  34. REFA_CheckFile  = (TAPTR|REF_CheckFile)
  35. REFA_ModNumber  = (TWORD|REF_ModNumber)
  36.  
  37. ******************************************************************************
  38. * Universal Structure.
  39.  
  40. UNVERSION     = 1
  41. TAGS_UNIVERSE = ((ID_SPCTAGS<<16)|ID_UNIVERSE)
  42.  
  43.    STRUCTURE    UN,HEAD_SIZEOF
  44.     APTR    UN_Palette
  45.     WORD    UN_Planes
  46.     WORD    UN_ScrWidth
  47.     WORD    UN_ScrHeight
  48.     WORD    UN_Width
  49.     WORD    UN_ByteWidth
  50.     WORD    UN_Height
  51.     APTR    UN_Task
  52.     LONG    UN_Frequency
  53.     LONG    UN_AmtColours
  54.     WORD    UN_ScrMode
  55.     WORD    UN_ScrType
  56.     APTR    UN_Source
  57.     APTR    UN_dedScreenLink
  58.     APTR    UN_Rasterlist
  59.     WORD    UN_ScrXOffset
  60.     WORD    UN_ScrYOffset
  61.     WORD    UN_PicYOffset
  62.     WORD    UN_PicXOffset
  63.     WORD    UN_Channel
  64.     WORD    UN_Priority
  65.     LONG    UN_Length
  66.     WORD    UN_Octave
  67.     WORD    UN_Volume
  68.  
  69. ******************************************************************************
  70. * The SysObject structure.
  71.  
  72. SOVERSION      = 1
  73. TAGS_SYSOBJECT = ((ID_SPCTAGS<<16)|ID_SYSOBJECT)
  74.  
  75.    STRUCTURE    SysObject,HEAD_SIZEOF
  76.     APTR    SO_Prev         ;Previous object in the list.
  77.     APTR    SO_Next         ;Next object in the list.
  78.     WORD    SO_ObjectID     ;ID for the object (eg ID_PICTURE, ID_HIDDEN).
  79.     WORD    SO_ClassID      ;ID for the class.
  80.     APTR    SO_Name         ;String pointer to the name of this object.
  81.     APTR    SO_CopyToUnv    ;> Copy to universe.
  82.     APTR    SO_CopyFromUnv  ;> Copy from universe.
  83.     APTR    SO_CheckFile    ;> Check for file recognition.
  84.     APTR    SO_Load         ;> Load a file that belongs to this object.
  85.     APTR    SO_Display      ;> Display the object inside its container.
  86.     APTR    SO_Get          ;> Get object.
  87.     APTR    SO_Free         ;> Free object.
  88.     APTR    SO_Init         ;> Initialise object.
  89.     APTR    SO_Read         ;> Read some data from the object.
  90.     APTR    SO_Write        ;> Write some data to the object.
  91.     APTR    SO_Open         ;> Open this object as a virtual file.
  92.     APTR    SO_Hide         ;> Hide/Remove the object from the display.
  93.     APTR    SO_Close        ;> Close the data filing section of this object.
  94.     APTR    SO_Save         ;> Save this entire object as a file.
  95.     APTR    SO_Query        ;> Query the information held on this object.
  96.     APTR    SO_Activate     ;> Perform the native action for this object.
  97.     APTR    SO_Deactivate   ;> End the native action for this object.
  98.     APTR    SO_Draw         ;> Draw an object inside its container.
  99.     APTR    SO_Clear        ;> Clear an object from its container.
  100.     APTR    SO_Reset        ;> Reset the object.
  101.     APTR    SO_Flush        ;> Flush any buffered data in the object.
  102.     APTR    SO_TagTrigger   ;> Special routine handled by TagInit().
  103.     APTR    SO_Master       ;Reference to master if this is a child.
  104.     APTR    SO_Lock         ;> Lock an objects location and declare ownership.
  105.     APTR    SO_Unlock       ;> Unlock an object.
  106.     APTR    SO_Detach       ;> Detach an object from a parent.
  107.  
  108. SOA_ClassID     = TAPTR|SO_ClassID
  109. SOA_CopyToUnv   = TAPTR|SO_CopyToUnv
  110. SOA_CopyFromUnv = TAPTR|SO_CopyFromUnv
  111. SOA_CheckFile   = TAPTR|SO_CheckFile
  112. SOA_Load        = TAPTR|SO_Load
  113. SOA_Display     = TAPTR|SO_Display
  114. SOA_Get         = TAPTR|SO_Get
  115. SOA_Free        = TAPTR|SO_Free
  116. SOA_Init        = TAPTR|SO_Init
  117. SOA_Read        = TAPTR|SO_Read
  118. SOA_Write       = TAPTR|SO_Write
  119. SOA_Open        = TAPTR|SO_Open
  120. SOA_Hide        = TAPTR|SO_Hide
  121. SOA_Close       = TAPTR|SO_Close
  122. SOA_Save        = TAPTR|SO_Save
  123. SOA_Query       = TAPTR|SO_Query
  124. SOA_Activate    = TAPTR|SO_Activate
  125. SOA_Deactivate  = TAPTR|SO_Deactivate
  126. SOA_Draw        = TAPTR|SO_Draw
  127. SOA_Clear       = TAPTR|SO_Clear
  128. SOA_Reset       = TAPTR|SO_Reset
  129. SOA_Flush       = TAPTR|SO_Flush
  130. SOA_TagTrigger  = TAPTR|SO_TagTrigger
  131. SOA_Lock    = TAPTR|SO_Lock
  132. SOA_Unlock    = TAPTR|SO_Unlock
  133. SOA_Detach      = TAPTR|SO_Detach
  134.  
  135.   ENDC    ;SYSTEM_MISC_I
  136.